

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>



<?php
       //echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8');
      echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8'); 
       echo $this->headTitle('Học Trực Tuyến'); 
       echo $this->headLink();
       echo $this->headStyle();
       echo $this->headScript();

?>

<link href="<?php echo $this->baseUrl('application/templates/mytemp/system/css/style3.css'); ?>" type="text/css" rel="stylesheet" />
<script src="<?php echo $this->baseUrl('application/templates/mytemp/system/js/jquery-1.7.1.min.js');?>"></script>
<script src="<?php echo $this->baseUrl('application/templates/mytemp/system/js/jquery.dropotron-1.0.js');?>"></script>

</head>
	
<body>

<div id="wrapper">
		<div id="header-wrapper">
		
			<div id="header" >
				<div id="logo">
					<h1> Our Lessons</h1>
				</div>
                <div id="user">
                <?php
        $auth = Zend_Auth::getInstance();
        if($auth->hasIdentity()) :
        $infoUser = $auth->getIdentity();
        if($infoUser->type_user == 'facebook') :
    ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php elseif($infoUser->type_user == 'google') : ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php elseif($infoUser->type_user == 'user') : ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php
        endif;
        else :
    ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/login'); ?>">Đăng nhập</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/register'); ?>">Đăng ký</a>
    <?php endif; ?>
                </div>
                
                
			
			</div>
			
		</div>
		
		<div id="menu-wrapper" >
		   <ul id="menu">
		      <li><a href="<?php echo $this->baseUrl("index/register"); ?>">Đăng Ký</a></li>
              <li><a href="<?php echo $this->baseUrl("index/login"); ?>">Đăng Nhập</a></li>
			 <li class="current_page_item"><a href="<?php echo $this->baseUrl("khoahoc/index"); ?>"> <span>  Trang Chủ</span></a> </li>
			 <li><a href="#"> <span>Khóa Học</span></a> 
             <?php 
                $khoahoc= new Default_Model_Khoahoc();
                $data=$khoahoc->listKhoahoc();
               
             ?>
             
             
			 <ul>
			 	<?php foreach($data as $khoahoc): ?>
                <li><a href="<?php echo $this->baseUrl("khoahoc/view?makh=".$khoahoc['makh']); ?>"><?php echo $khoahoc['tenkh']; ?></a> </li>
                
                <?php endforeach;?>
			 </ul>
			 
			 </li>
             <?php
                // Lay du lieu ve tat ca cac giao vien
                $gv= new Default_Model_Giaovien();
                $giaovien=$gv->listgv();
                
                
             ?>
             
             
			 
			 <li><a href="#"> <span>Giáo Viên</span></a> </li>
            
             
			
		   
		   </ul>
		   <script type="text/javascript">
			$('#menu').dropotron();
		</script>
		
		</div>
		
		<div id="splash" >
			<img src="<?php  echo $this->baseUrl(); ?>/public/img/pics01.jpg"/>
    <div id="hello">
      
                
               
    
    </div>
            
            
            
            
		</div>
		
		<div id="page" >
			<div id="content">
				<div class="contentbg">
                
					<?php  echo $this->layout()->content;?>
				
				</div>
			</div>
			
			
			<div id="sidebar-bg">
			
			</div>
			
			<div id="sidebar">
				<ul>
				    <li> <h2> Khóa Học</h2>
						<ul> 
								<?php foreach($data as $khoahoc): ?>
                <li><a href="<?php echo $this->baseUrl("khoahoc/view?makh=".$khoahoc['makh']); ?>"><?php echo $khoahoc['tenkh']; ?></a> </li>
                
                <?php endforeach;?>
						</ul>
					
					 </li>
					 
					 
					 <li>
					 <h2>Giáo Viên</h2>
                     <ul> <?php 
             foreach($giaovien as $gv)
             {
                echo "<li><a href=''>".$gv['name']."</a></li>";
             }
              ?>
                        
                     </ul>
					 
					  </li>
				
				
				</ul>
				
			</div>
		
		</div>
		
		
		
	
	
	</div>
	
	
	<div id="footer">
		<p> E-Learning 2012-Design by Yen Nguyen Duc <a href="#">ThietkewebViet </a></p>
	</div>

</body>
</html>


